<template>
  <!-- <router-view /> -->
  <router-view v-slot="{ Component, route }">
    <div v-if="route.path!=='/large-screen'">
      <component v-if="!route.meta.link" :is="Component" :key="route.path" />
    </div>
    <div v-else>
      <router-view />
    </div>
  </router-view>
</template>

<script setup>
import useSettingsStore from "@/store/modules/settings";
import { handleThemeStyle } from "@/utils/theme";

onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme);
  });
});
</script>
